﻿<%@ Page Language="C#" MasterPageFile="~/Include/Admin.master" AutoEventWireup="true"
    CodeFile="Manage.aspx.cs" Inherits="Admin_Article_GWArt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../../Style/Common/DatePage.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table class="editTable"  style="text-align:center" width="100%" cellpadding="0" cellspacing="1">
            <tr style="background-image: url('/images/管理员页面/title_bg1.jpg'); background-repeat: repeat-x;">
                <td colspan="8" style="font-weight: bold; font-size: large; font-family: 仿宋;">
                    <strong class="style1">文章中心管理</strong>
                </td>
            </tr>
            <tr>
                <th>
                    <span class="red">*</span>文章标题：
                </th>
                <td>
                    <asp:TextBox ID="txtBiaoTi" runat="server" Height="21px" Width="400px" MaxLength="10"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    <span class="red">*</span>链接地址：
                </th>
                <td>
                    <asp:TextBox ID="txtNeiRong" runat="server" Width="400px" MaxLength="80"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btn_search_Click" runat="server" Text="提交" OnClick="btn_search_Click_Click" />
                </td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="0" style="width: 100%; background-color:#CCCCFF" >
            <tr>
                <td style="padding: 5px; padding-right: 5px;" colspan="3">
                    <table cellspacing="0" cellpadding="0" style="width: 100%; padding-bottom: 5px; border: 1px;
                        border-color: #66CCFF; background-color: #ffffff">
                        <tr>
                            <td align="center">
                                <asp:ListView ID="Lv_ArtList" runat="server" DataKeyNames="ID" OnItemDeleting="Lv_ArtList_ItemDeleting"
                                    OnPagePropertiesChanged="Lv_ArtList_PagePropertiesChanged">
                                    <LayoutTemplate>
                                        <table width="100%" class="editTable" cellspacing="1">
                                            <tr>
                                                <th>
                                                    文章标题
                                                </th>
                                                <th>
                                                    文章内容
                                                </th>
                                                <th>
                                                    操作
                                                </th>
                                            </tr>
                                            <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
                                        </table>
                                    </LayoutTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <%#Eval("Title")%>
                                            </td>
                                            <td>
                                                <%#Eval("link")%>
                                            </td>
                                            <td>
                                                <a href="SYArt.aspx?ID=<%#Eval("ID") %>">修改</a>
                                                <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClientClick="return confirm('你确定要删除吗?');"
                                                    CommandName="Delete" CommandArgument='<%#Eval("ID")%>'></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:ListView>
                                <div style="padding: 4px; text-align: center;">
                                    <asp:DataPager ID="Pager" runat="server" PagedControlID="Lv_ArtList" OnPreRender="Pager_PreRender"
                                        PageSize="20">
                                        <Fields>
                                            <asp:TemplatePagerField>
                                                <PagerTemplate>
                                                    共<%=Pager.TotalRowCount%>条数据
                                                </PagerTemplate>
                                            </asp:TemplatePagerField>
                                            <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowLastPageButton="true" />
                                            <asp:NumericPagerField ButtonCount="5" CurrentPageLabelCssClass="CurrentPage" NumericButtonCssClass="Page" />
                                        </Fields>
                                    </asp:DataPager>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
